package com.hksj.cbm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.cbm.dto.SpaceModelDTO;
import com.hksj.cbm.entity.SpaceModel;
import com.hksj.cbm.query.SpaceModelQuery;
import com.hksj.cbm.vo.SpaceModelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 空间模型表
 * @author zengke
 * @version 1.0
 * @see SpaceModelMapper
 * @since 2024/7/11 14:56
 */
@Mapper
public interface SpaceModelMapper extends BaseMapper<SpaceModel> {
    List<SpaceModelVO> querySpaceModelListByPaging(Page<SpaceModelVO> page, @Param("spaceModelQuery") SpaceModelQuery spaceModelQuery);

    List<SpaceModelVO> querySpaceModelChildren(@Param("id") Long id);

    List<SpaceModelVO> querySpaceModelParent(@Param("id") Long id);

    List<SpaceModel> querySpaceModelList(@Param("spaceModelDTO") SpaceModelDTO spaceModelDTO);
}
